<template>
  <el-image :src="value" :style="style" />
</template>

<script lang="ts" setup>
  import { computed } from 'vue';

  const props = defineProps<{
    width?: string;
    height?: string;
    value: string;
  }>();

  const style = computed(() => ({
    width: props.width || '100px',
    height: props.height || '100px'
  }));
</script>

<style scoped></style>
